#include <iostream>
#include <string>

using namespace std;

void DebugLog(string message)
{
    cerr << message << endl;
}
void DebugLog(int message)
{
    cerr << std::to_string(message) << endl;
}
void DebugLog(string message, int value)
{
    string val = std::to_string(value);
    cerr << message << val << endl;
}

class Player
{
    private:
        int _x0;
        int _y0;
        int _x1;
        int _y1;
    public:
        Player()
        {
        }
        ~Player()
        {
        }
        
        // Setters
        void SetTail(int x, int y)
        {
            _x0 = x;
            _y0 = y;
        }
        void SetHead(int x, int y)
        {
            _x1 = x;
            _y1 = y;
        }
        
        void Move()
        {
            // Logic here - based off of x,y coords
            
        }
        
        // Movement
        void Up()
        {
            cout << "UP" << endl;
        }
        
        void Down()
        {
            cout << "DOWN" << endl;
        }
        
        void Left()
        {
            cout << "LEFT" << endl;
        }
        
        void Right()
        {
            cout << "RIGHT" << endl;
        }
};

int main()
{
    Player player;
    
    while (true)
    {
        // Read information from standard input
        int n;
        int p;
        int x0;
        int x1;
        int y0;
        int y1;
        cin >> n;
        cin >> p;
        cin >> x0;
        cin >> y0;
        cin >> x1;
        cin >> y1;
        
        player.SetTail(x0, y0);
        player.SetHead(x1, y1);
                
        player.Move();
    }

    return 0;
}